//	mpsf.mutesolo.h
#pragma once
#define WIN_VERSION
#define _CRT_SECURE_NO_DEPRECATE
#include <max/ext.h>
#include <max/ext_common.h>

typedef struct _chan_t
{
	int _mute;
	int _solo;
	int _on;
} t_chan;

typedef struct _mutesolo_t 
{
	t_object _obj;
	long _count;
	t_chan *_chans;
	long _solo;
	void *_onout;
	void *_soloout;
} t_mutesolo;

void* ms_new(long count);
void ms_free(t_mutesolo *x);
void ms_setcount(t_mutesolo *x, long count);
void ms_mute(t_mutesolo *x, long ch, long val);
void ms_solo(t_mutesolo *x, long ch, long val);
void ms_update(t_mutesolo *x);
void ms_output(t_mutesolo *x);
void ms_dump(t_mutesolo *x);
void ms_assist(t_mutesolo *x, void *box, long msg, long arg, char *dst);

